
public class Rectangle1 extends Shape {
	private double width=1.0;
	private double length=1.0;
	public Rectangle1() {
		super();
	}
	public Rectangle1(double width, double length) {
		super();
		this.width = width;
		this.length = length;
	}
	public Rectangle1(double width, double length,String color,boolean filled) {
		super(color,filled);
		this.width = width;
		this.length = length;
	}
	public double getWidth() {
		return width;
	}
	public void setWidth(double width) {
		this.width = width;
	}
	public double getLength() {
		return length;
	}
	public void setLength(double length) {
		this.length = length;
	}
	public double getArea(){
		return length*width;
	}
	public double getPerimeter(){
		return 2*(length+width);
	}
	@Override
	public String toString() {
		return "Rectangle1 [width=" + width + ", length=" + length + ", Area=" + getArea() + ", Perimeter="
				+ getPerimeter() + ", Color=" + getColor() + ", Filled=" + isFilled() + "]";
	}
	
	
}
